Skip to main content
This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

Notes/Domino 6 and 7 Forum

Notes/Domino 6 and 7 Forum


  

PreviousPrevious NextNext

RE: LS2J security exception
~Tony Quetjipylitjip 1.Sep.03 12:42 PM a Web browser
Domino Server 6.0.2 CF1 Windows 2000


Hi,

here's the stacktrace output:

ERROR: unknown option a in -a
Program is terminating!
01.09.2003 14:36:42 Agent printing: Updating IDE Files
01.09.2003 14:36:42 Agent error: java.lang.SecurityException
01.09.2003 14:36:42 Agent error: at lotus.notes.AgentSecurityManager.checkPropertiesAccess(Unknown Source)
01.09.2003 14:36:42 Agent error: at java.lang.System.getProperties(System.java:522)
01.09.2003 14:36:42 Agent error: at URLReader.download(URLReader.java:28)
01.09.2003 14:36:42 Agent error: at java.lang.reflect.Method.invoke(Native Method)
01.09.2003 14:36:42 Agent error: at lotus.domino.JavaConnectInvoker.invoke(JavaConnectInvoker.java:42)
01.09.2003 14:36:42 Agent error: at java.lang.reflect.Method.invoke(Native Method)
01.09.2003 14:36:42 Agent error: at lotus.domino.JavaConnectLoader.invoke(JavaConnectLoader.java:266)

the method code is as following:

import java.net.*;
import java.io.*;

public class URLReader {
public boolean on = false;

public void download(String url, String filename) throws Exception
{
try{
System.getProperties().put( "proxySet", "true" );
System.getProperties().put( "proxyHost", "proxy1" );
System.getProperties().put( "proxyPort", "8080" );
URL urlname = new URL(url);
File outputFile = new File(filename);
FileOutputStream out = new FileOutputStream(outputFile);
BufferedInputStream in = new BufferedInputStream(urlname.openStream());
int input;
while ((input = in.read()) != -1)
{
out.write(input);
}
in.close();
out.close();
}
catch(java.lang.SecurityException e){
e.printStackTrace();
}
}
}


Thanks for your help,
René




LS2J security exception (~Tony Quetjipyl... 1.Sep.03)
. . RE: LS2J security exception (~Tanita Quetfre... 1.Sep.03)
. . RE: LS2J security exception (~Tanita Quetfre... 1.Sep.03)
. . . . RE: LS2J security exception (~Tony Quetjipyl... 1.Sep.03)
. . . . . . RE: LS2J security exception (~Tanita Quetfre... 1.Sep.03)
. . . . . . . . RE: LS2J security exception (~Tony Quetjipyl... 1.Sep.03)
. . . . . . . . . . RE: LS2J security exception (~Tanita Quetfre... 1.Sep.03)
. . . . . . . . . . . . I got it! (~Tony Quetjipyl... 2.Sep.03)


Document Options






  Document options
Print this pagePrint this page

Search this forum

Forum views and search


  Forum views and search
Date (threaded)
Date (flat)
With excerpt
Category
Platform
Release
Advanced search

Member Tools


RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS